package com.jenvin.idcreator;

import java.util.HashMap;
import java.util.Map;

public class IdCreatorManager {

    public static Map<String, IdCreator> creatorMaps = new HashMap<String, IdCreator>();
    static {
        IdCreator creator = new IdCreator();
        creator.setSeed(0L);
        creator.setDescription("Im游客ID生成器");
        creator.setName("im");
        creator.setBufferSize(20);
        creator.setProvider(new SampleIdCreatorProvider());
        creatorMaps.put(creator.getName(), creator);
    }

    public static IdCreator getIdCreator(String name) {
        return creatorMaps.get(name);
    }
}
